<?php

namespace App\Repository\Repositories;

use App\Models\MemberSet;
use App\Repository\RepositoryInterface\DistributionInterface;

class DistributionRepositories implements DistributionInterface
{
    /**
     * @param $id
     * @param $data
     * @return mixed 会员设置
     */
    public function memberSet($id,$data)
    {
        return MemberSet::where('id',$id)->update($data);
    }

    /**
     * @param $id
     * @return mixed 会员设置
     */
    public function getSet($id)
    {
        return  MemberSet::where('id',$id)->first();
    }
}
